import { controls } from "../controls";
import CardService from "./base/service";
import FlowCardService from "./flow/service";
import FormCardService from "./form/service";

const general = new CardService({
  title: '常规',
  controls: [
    controls.general.id,
    controls.general.name,
  ],
});

const form = new FormCardService({
  title: '表单',
  controls: [
    controls.form.createPath,
    controls.form.viewPath,
  ]
});

const flowCondition = new FlowCardService();

const setting = new FormCardService({
  title: '操作设置',
  controls: [
    controls.setting.operation,
  ]
});

export const cards = {
  general,
  form,
  flowCondition,
  setting
};